import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { RecipesManageComponent } from './recipes-manage.component';
import { RecipesDetailComponent } from './recipes-detail/recipes-detail.component';

const RecipesManageRoutes: Routes = [
  {
    path: '',
    component: RecipesManageComponent ,
    data: { name: '食谱管理', lv: 1, url: 'recipes/recipes-manage' },
  }, {
    path: 'detail',
    component: RecipesDetailComponent,
    data: { name: '食谱详情', lv: 2,  url: 'recipes/recipes-manage/detail' }
  }
];


@NgModule({
  imports: [
    RouterModule.forChild(RecipesManageRoutes)
  ],
  exports: [
    RouterModule
  ]
})

export class RecipesManageRoutingModule { }
